home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 1997-1998 - Modelworks Software
-
- // Insert script helper for:
-
- /**
- @Object: Editor
- @Method: newBookmark(startIndex [, endIndex]) creates a bookmark for the beginning line
- index to the ending line index. Returns a Bookmark object.
- @Syntax: editor.newBookmark(startIndex [, endIndex] )
- @Summary: newBookmark - creates a bookmark
- */
-
- function DoCommand()
- {
- var editor = getActiveEditor();
- if (editor)
- {
- var selection = editor.getSelection();
- editor.replace("editor.newBookmark(startIndex [, endIndex] );", selection);
- editor.setActive("Insert editor.newBookmark");
- }
- }
-
- !!/Script
-